/*
 * @Author: Aaron
 * @Date: 2022-05-18 14:10:07
 * @LastEditors: Aaron
 * @LastEditTime: 2022-05-18 14:43:57
 * @Description: file content
 * @FilePath: \ias_ui\src\views\JDSupermarket\js\hasEdit.js
 * @Company: 沃尔玛
 */

export const hasEdit = {
  data(){
    const editPermissions = ['R017002']
    const administrators = ['R017001']
    return {
      isEdit: this.hasRole(editPermissions),
      isAdministrators: this.hasRole(administrators)
    }
  }
}
